package jhsys.mc.smarthome.homecontrol;

import jhsys.mc.basepage.MCApplication;
import android.widget.AbsoluteLayout;
import android.widget.AbsoluteLayout.LayoutParams;

public class DeviceTypeButtonLayout {
	private static AbsoluteLayout.LayoutParams param1, param2, param3, param4,
			param5, param6, param7;
	public static AbsoluteLayout.LayoutParams[] params = {

			param1 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT, 37, 0),
			param2 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT, 173, 0),
			param3 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT, 309, 0),
			param4 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT, 445, 0),
			param5 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT, 581, 0),
			param6 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT, 717, 0),
			param7 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT, 853, 0) };
	
	
	private static AbsoluteLayout.LayoutParams param21, param22, param23, param24,
	param25, param26, param27;
	public static AbsoluteLayout.LayoutParams[] params2 = {

		param21 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT, 16, 0),
		param22 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT, 126, 0),
		param23 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT, 236, 0),
		param24 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT, 346, 0),
		param25 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT, 456, 0),
		param26 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT, 566, 0),
		param27 = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT, 676, 0) };
	
	public static AbsoluteLayout.LayoutParams getParam(int i){
		if(MCApplication.screenWidth>900){
			return params[i];
		} else {
			return params2[i];
		}
		
	}
	
}
